Match arm-unknown-linux to armv7-unknown-linux
authorIlias Tsitsimpis <iliastsi@debian.org>
Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)
committerIlias Tsitsimpis <iliastsi@debian.org>
Sat, 24 Jan 2026 12:41:42 +0000 (14:41 +0200)
Bug: https://gitlab.haskell.org/ghc/ghc/-/issues/26734
Bug-Debian: https://bugs.debian.org/1124748
Forwarded: <URL|no|not-needed, useless if you have a Bug field, optional>

Gbp-Pq: Name armhf-target-platform

configure.ac

index acaadd2fb6bcb0b498fbe586f9f6acf408290163..edc2c07f57cbd69766b201a6503d8518d1a3ee27 100644 (file)
@@ -277,7 +277,9 @@ FP_PROG_SH
 
 # Verify that the installed (bootstrap) GHC is capable of generating
 # code for the requested build platform.
-if test "$BuildPlatform" != "$bootstrap_target"
+if test "$BuildPlatform" != "$bootstrap_target" \
+    && (test "$BuildPlatform" != "arm-unknown-linux" \
+        || test "$bootstrap_target" != "armv7-unknown-linux")
 then
     echo "This GHC (${WithGhc}) does not generate code for the build platform"
     echo "   GHC target platform    : $bootstrap_target"